import {combineReducers} from 'redux';
import {
  SET_BUSINESS_INTERFACE, SET_TYPE_INTERFACE, SET_SCENE_DEFINITION,
  SET_TYPE_INTERFACE_DATEIl, SET_ELEMENT_DEFINITION, SET_DEBIT, SET_CREDENTIAL_DEFINITION, SET_SETTING_MATE
} from 'actions/financial-account'
import {cr} from 'share/utils'

export default combineReducers({
  businessInterface: cr({}, {
    [SET_BUSINESS_INTERFACE](state, {businessInterface}){return businessInterface}
  }),

  typeInterface: cr({}, {
    [SET_TYPE_INTERFACE](state, {typeInterface}){return typeInterface}
  }),

  sceneDefinition: cr({}, {
    [SET_SCENE_DEFINITION](state, {sceneDefinition}){return sceneDefinition}
  }),

  typeInterfaceDetail:  cr({}, {
    [SET_TYPE_INTERFACE_DATEIl](state, {typeInterfaceDetail}){return typeInterfaceDetail}
  }),

  elementDefinition: cr({}, {
    [SET_ELEMENT_DEFINITION](state, {elementDefinition}){return elementDefinition}
  }),

  debit: cr({}, {
    [SET_DEBIT](state, {debit}){return debit}
  }),

  credentialDefinition: cr({}, {
    [SET_CREDENTIAL_DEFINITION](state, {credentialDefinition}){return credentialDefinition}
  }),

  settingMate: cr({}, {
    [SET_SETTING_MATE](state, {settingMate}){return settingMate}
  })
})
